﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LabProtese.Models;

namespace LabProtese.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";
            LabProteseContext l = new LabProteseContext();
            l.Pessoas.Add(new Pessoa() { PessoaNome = "Teste" });
            l.SaveChanges();
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
